<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="/faces/templates/master.xhtml">
        <ui:define name="content">
            <h:form>
                <p:panelGrid columns="3">
                    <p:outputLabel for="txt_revName" value="Reviername"/>
                    <p:inputText id="txt_revName" value="#{revAnlegenBean.revName}"/>
                    <p:message for="txt_revName" showDetail="true"/>
                    <p:outputLabel for="txt_revArt" value="Revierart"/>
                    <p:selectOneMenu id="txt_revArt" value="#{revAnlegenBean.revArt}">
                        <f:selectItem itemLabel="Bitte wählen Sie" itemValue=""/>
                        <f:selectItem itemLabel="Eigenrevier" itemValue="ERev"/>
                        <f:selectItem itemLabel="Gemeinschaftsrevier" itemValue="GRev"/>
                        <f:selectItem itemLabel="Staatsrevier" itemValue="SRev"/>
                    </p:selectOneMenu>
                    <p:message for="txt_revName" showDetail="true"/>
                    <p:outputLabel for="txt_amtlNr" value="amtl. Schlüsselnr."/>
                    <p:inputText id="txt_amtlNr" value="#{revAnlegenBean.amtlNr}"/>
                    <p:message for="txt_revName" showDetail="true"/>
                    <p:outputLabel for="txt_listeNr" value="Listennummer"/>
                    <p:inputText id="txt_listeNr" value="#{revAnlegenBean.listeNr}"/>
                    <p:message for="txt_revName" showDetail="true"/>
                    <p:commandButton value="Speichern" action="#{revAnlegenBean.speichern()}" ajax="false"/>
                    <p:button value="Abbrechen" outcome="reviere"/>
                </p:panelGrid>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

